# -*- coding:utf-8 -*-
class Solution:
    def jumpFloor(self, number):
        # write code here
        a=[1,2]
        if number<3:
            return a[number]
        first = 1
        second = 2
        for i in range(3,number+1):
            res = first + second
            first = second
            second = res
        return res

s = Solution()
m= s.jumpFloor(1)
print(m)